package com.mineoj.service;

import com.mineoj.model.entity.NoticeRead;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mineoj.model.entity.User;

/**
* @author 明月
* @description 针对表【notice_read(公告已读)】的数据库操作Service
* @createDate 2025-04-12 22:55:02
*/
public interface NoticeReadService extends IService<NoticeRead> {
    /**
     * 已读
     *
     * @param noticeId
     * @param loginUser
     * @return
     */
    int doNoticeRead(long noticeId, User loginUser);

    /**
     * 公告已读（内部服务）
     *
     * @param userId
     * @param noticeId
     * @return
     */
    int doNoticeReadInner(long userId, long noticeId);
}
